$("#submission").click(function () {
    var id = $("#id").val();
    var diagnosisContent = $("#diagnosisContent").val();
    if (diagnosisContent == "" || diagnosisContent == null) {
        alert("看诊内容不能为空！");
        return;
    }
    $.ajax({
        url: Feng.ctxPath + "/diagnosis/update_tcDiagnosisOk",
        type: "post",
        data: {
            "id": id,
            "diagnosisContent": diagnosisContent
        },
        success: function (data) {
            Feng.success("提交成功!");
            window.parent.ConsultantDiagnosis.search();
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        }
    });
});

$(function () {
    var reg = new RegExp("& lt;br/& gt;","g");
    //var str1 = row.diagnosisContent.replace(reg,'<br>');
    var str = $("#diagnosisContentValue").val().replace(reg, "\n");
    $("#diagnosisContent").val(str);
})